#include <iostream>
#include <cmath>
using namespace std;

int average(int array[], int size) {
  int sum = 0;
  for (int i = 0; i < size; i++)
    sum += array[i];
  return sum / size;
}

double average(double array[], int size) {
  double sum = 0;
  for (int i = 0; i < size; i++)
    sum += array[i];
  return sum / size;
}

int main()
{
  int list1[] = {1, 2, 3, 4, 5, 6};
  double list2[] = {5.0, 4.4, 1.9, 2.9, 3.4, 3.5};

  cout << average(list1, 6) << endl;
  cout << average(list2, 6) << endl;

  return 0;
}
